package com.pentakill.mo.essay.discuss.vo;


import java.util.Set;

import com.pentakill.mo.auth.user.vo.UserModel;
import com.pentakill.mo.essay.essay.vo.EssayModel;
import com.pentakill.mo.util.format.FormatUtil;

/**
 * 评论实体类
 * @author xing
 * 
 */
public class DiscussModel {
	private Integer uuid;
	//评论内容
	private String context;
	//评论时间
	private Long createDate;
	
//	//当前评论对应uuid（为新评论而设置）
//	private Integer puuid;
	
	//一个评论对应一篇文章
	private EssayModel essayModel;
	
	//用户的评论
	private UserModel userModels;
	
	//评论的父评论（多对一）
	private DiscussModel parent;
	
	//评论的子评论（一对多）
	private Set<DiscussModel> children;

	
	private String createDateView;
	
	public String getCreateDateView() {
		return createDateView;
	}

	public Integer getUuid() {
		return uuid;
	}

	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}



	public Long getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Long createDate) {
		this.createDate = createDate;
		this.createDateView = FormatUtil.formatDate(createDate);
	}



	public EssayModel getEssayModel() {
		return essayModel;
	}

	public void setEssayModel(EssayModel essayModel) {
		this.essayModel = essayModel;
	}

	public UserModel getUserModels() {
		return userModels;
	}

	public void setUserModels(UserModel userModels) {
		this.userModels = userModels;
	}

	public DiscussModel getParent() {
		return parent;
	}

	public void setParent(DiscussModel parent) {
		this.parent = parent;
	}

	public Set<DiscussModel> getChildren() {
		return children;
	}

	public void setChildren(Set<DiscussModel> children) {
		this.children = children;
	}
	
	
	
}
